<include file="Public/header" />
<div style="text-align:center;margin:150px 0; font:normal 14px/24px 'MicroSoft YaHei';">



<form action="{:U('Tools/yzm')}" method="post">
<input name="yzm" style="text" value=" " />
<button style="submit" >发送</button><br>
</form>
<img src="{:U('Tools/yzm')}" id="yzm" onclick="fleshVerify()"><button onclick="ref();">刷新</button>

    <script>
//        $(document).ready(function(){
//            setTimeout(fleshVerify(),1000);
//
//
////            alert("初始化");
//        });




        //点击图像刷新
        function fleshVerify(){
            //重载验证码
            var time = new Date().getTime();
            document.getElementById('yzm').src= "{:U('Tools/yzm')}?time="+time;
        }

          //点击刷新按钮刷新
        function ref() {
//            $("#yzm").attr("src","/raphael/Public/home/images/logo.png");
            var time = new Date().getTime();
            var url="{:U('Tools/yzm')}?time="+time;
            $("#yzm").attr("src",url);
        }

    </script>

</div>
<include file="Public/footer" />